<template>
  <section>
    商城活动列表
    <el-tabs v-model="tabPage">
      <el-tab-pane label="活动列表" name="list">
        <sale-list></sale-list>
        新建活动；编辑活动；列表展示
            加载类型用于选择；

        选择适用的商品；
      </el-tab-pane>
      <el-tab-pane label="活动类型" name="type">
        <sale-type></sale-type>
        新建类型；编辑类型；类型展示
      </el-tab-pane>
    </el-tabs>
  </section>
</template>

<script>
  import saleList from './saleList'
  import saleType from './saleTypeList'
  import {mapGetters, mapActions, mapMutations} from 'vuex'
  import errHandler from '@/assets/errHandler.js'
  import Vue from 'vue'//后续添加属性，需要vue联动
  export default {
    name: "index",
    components:{saleList,saleType},
    data() {
      return {
        tabPage:'list',
      }
    },
    created(){
    },
    watch:{
    },
    computed:{
      ...mapGetters(['department']),
    },
    methods: {
      ...mapActions({
        fetch: 'fetch'
      }),
    }
  }
</script>

<style scoped>

</style>
